import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'amfe-flexible'
import directives from './utils/directives'
import { allChannelListAPI } from './api/index'
import { NavBar, Form, Field, Button, Tabbar, TabbarItem, Icon, Tab, Tabs, Cell, ActionSheet, List, PullRefresh, Popup, Row, Col, Badge, Search, Divider } from 'vant'

Vue.use(Search)
Vue.use(Row)
Vue.use(Col)
Vue.use(Badge)
Vue.use(Popup)
Vue.use(List)
Vue.use(Cell)
Vue.use(Tab)
Vue.use(Tabs)
Vue.use(Icon)
Vue.use(NavBar)
Vue.use(Form)
Vue.use(Field)
Vue.use(Button)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(ActionSheet)
Vue.use(PullRefresh)
Vue.use(directives)
Vue.use(Divider)

Vue.config.productionTip = false
async function myFn () {
  const res = await allChannelListAPI()
  console.log(res)
}
myFn()
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
